import 'package:flutter/material.dart';
import 'package:leader_help/utils/util.dart';

class SectionTitle extends StatelessWidget {
  const SectionTitle({Key? key, required this.title, this.indent})
      : super(key: key);
  final String title;
  final double? indent;
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 40.r,
      padding: EdgeInsets.symmetric(horizontal: indent ?? 10.r),
      alignment: Alignment.centerLeft,
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Container(
            width: 2.r,
            height: 12.h,
            color: ColorsUtil.red,
          ),
          SizedBox(
            width: 10.r,
          ),
          Text(
            title,
            style: pfSCStyle(color: ColorsUtil.title, fontSize: 15.sp),
          ),
        ],
      ),
    );
  }
}
